cmake_minimum_required(VERSION 3.16)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_CXX_STANDARD 17)

#set(ASCEND_PRODUCT_TYPE "ascend910B1")
#set(ASCEND_CORE_TYPE "VectorCore")
#set(ASCEND_RUN_MODE "ONBOARD")
#set(ASCEND_INSTALL_PATH "/usr/local/Ascend/ascend-toolkit/latest")

#add_compile_definitions(ASCEND_PRODUCT_TYPE=${ASCEND_PRODUCT_TYPE}
#                        ASCEND_CORE_TYPE=${ASCEND_CORE_TYPE}
#                        ASCEND_RUN_MODE=${ASCEND_RUN_MODE}
#                        ASCEND_INSTALL_PATH=${ASCEND_INSTALL_PATH})

set(CCE_CMAKE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
list(APPEND CMAKE_MODULE_PATH ${CCE_CMAKE_PATH})
project(kernel_add LANGUAGES CCE CXX)

add_subdirectory(cmake/npu)